package com.javalab._7thread._3Lock._2Volatile;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        CommonData.setStop(false);
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.start();
        System.out.println("执行中...");
        Thread.sleep(100);
        CommonData.setStop(true);
    }
}
